package com.xbai.intervention;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author jxbai
 * @desc
 * @date 2021/1/14 0014
 */
@SpringCloudApplication
public class InterventionApplication {

    public static void main(String[] args) {
        SpringApplication.run(InterventionApplication.class, args);
    }

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}
